import { RouterModule } from '@angular/router';
import { DeptlistComponent } from './deptlist/deptlist.component';
import { SchedulingComponent } from './scheduling/scheduling.component'
import { ContrementComponent } from './contrement/contrement.component';
import { ResultComponent } from './result/result.component';

export const AppointRoutes = [
  {
    path: '',
    redirectTo: 'deptlist',
    pathMatch: 'full'
  },
  {
    path: 'deptlist',
    component: DeptlistComponent
  },
  {
    path: 'scheduling/:id',
    component: SchedulingComponent
  },
  {
    path: 'contrement',
    component: ContrementComponent
  },
  {
    path: 'result',
    component: ResultComponent
  }
];
